package com.wfk.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;

/**
 * <p>
 * 订单
 * </p>
 *
 * @since 2019-01-07
 */
@TableName("t_order")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

        /**
     * 订单号
     */
         private String orderid;

        /**
     * 用户
     */
         private Integer cid;

        /**
     * 订单类型 1 设备订单 2 积分订单 3 充值订单 4 退款订单 
     */
         private Integer orderType;

        /**
     * 支付类型
     */
         private Integer payType;

        /**
     * 省
     */
         private Integer proid;

        /**
     * 市
     */
         private Integer cityid;

        /**
     * 县
     */
         private Integer areaid;

        /**
     * 第三方支付单号
     */
         private String trancode;

        /**
     * 订单状态 0未支付 1 已支付 2 异常 -1 取消
     */
         private Integer status;

        /**
     * 默认RMB
     */
         private String moneyUnit;

        /**
     * 运费
     */
         private BigDecimal freightMoney;

        /**
     * 支付金额
     */
         private BigDecimal money;

        /**
     * 使用积分
     */
         private BigDecimal point;

        /**
     * 订单标题
     */
         private String title;

        /**
     * 订单内容
     */
         private String content;

        /**
     * 版本号
     */
         @Version
    private Integer version;

        /**
     * 支付时间
     */
         private Date paytime;

    private Date createtime;


    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getProid() {
        return proid;
    }

    public void setProid(Integer proid) {
        this.proid = proid;
    }

    public Integer getCityid() {
        return cityid;
    }

    public void setCityid(Integer cityid) {
        this.cityid = cityid;
    }

    public Integer getAreaid() {
        return areaid;
    }

    public void setAreaid(Integer areaid) {
        this.areaid = areaid;
    }

    public String getTrancode() {
        return trancode;
    }

    public void setTrancode(String trancode) {
        this.trancode = trancode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMoneyUnit() {
        return moneyUnit;
    }

    public void setMoneyUnit(String moneyUnit) {
        this.moneyUnit = moneyUnit;
    }

    public BigDecimal getFreightMoney() {
        return freightMoney;
    }

    public void setFreightMoney(BigDecimal freightMoney) {
        this.freightMoney = freightMoney;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getPoint() {
        return point;
    }

    public void setPoint(BigDecimal point) {
        this.point = point;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Date getPaytime() {
        return paytime;
    }

    public void setPaytime(Date paytime) {
        this.paytime = paytime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "Order{" +
        "orderid=" + orderid +
        ", cid=" + cid +
        ", orderType=" + orderType +
        ", payType=" + payType +
        ", proid=" + proid +
        ", cityid=" + cityid +
        ", areaid=" + areaid +
        ", trancode=" + trancode +
        ", status=" + status +
        ", moneyUnit=" + moneyUnit +
        ", freightMoney=" + freightMoney +
        ", money=" + money +
        ", point=" + point +
        ", title=" + title +
        ", content=" + content +
        ", version=" + version +
        ", paytime=" + paytime +
        ", createtime=" + createtime +
        "}";
    }
}
